#ifndef MATH_LIB_H
#define MATH_LIB_H

#include <vector>

namespace MathLib {

// 计算器类
class Calculator {
public:
    static double add(double a, double b);
    static double subtract(double a, double b);
    static double multiply(double a, double b);
    static double divide(double a, double b);
    static double power(double base, double exponent);
};

// 几何计算类
class Geometry {
public:
    static double circleArea(double radius);
    static double rectangleArea(double width, double height);
    static double triangleArea(double base, double height);
    static double sphereVolume(double radius);
};

// 统计计算类
class Statistics {
public:
    static double mean(const std::vector<double>& data);
    static double median(std::vector<double> data);
    static double standardDeviation(const std::vector<double>& data);
    static double variance(const std::vector<double>& data);
};

} // namespace MathLib

#endif // MATH_LIB_H